package com.lc.pianostudent.conn;

import com.lc.pianostudent.bean.AnswerResultBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONArray;
import org.json.JSONObject;

import java.io.File;
import java.util.ArrayList;

/**
 * Created by Administrator on 2018/2/22.
 */
@HttpInlet(Conn.LEARN_INDEX)
public class PostLearnIndex extends BaseAsyPost {

    public String user_id,time;
    public String video;
    public PostLearnIndex(AsyCallBack asyCallBack) {
        super(asyCallBack);
    }

    @Override
    protected PostLearnIndexInfo parser(JSONObject object) throws Exception {
        if (object.optString("code").equals("200")) {

            PostLearnIndexInfo info = new PostLearnIndexInfo();

            info.code = object.optString("code");

            TOAST = object.optString("message");
            return info;

        } else {

            TOAST = object.optString("message");

        }

        return null;
    }

    public static class PostLearnIndexInfo {

        public String code,message;



    }


}
